package com.legrand.www.module.exception.exceptionHandel;

import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * @ControllerAdvice
 */
@ResponseBody
public class AimeiExceptionHandel {

    /*@ExceptionHandler(CustomizeException.class)*/
    public Map aimeiExceptionHandler(Exception e) {
        Map map = new HashMap();
        map.put("code", e.getMessage());
        map.put("code", 111);
        return map;
    }
}
